package com.remenote.remenoteback.dao;


import com.remenote.remenoteback.entity.doo.DeckDo;
import com.remenote.remenoteback.entity.doo.NotebookDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeckRepository extends JpaRepository<DeckDo,Integer> {
//    List<NotebookDo> findNotebookDoByUsernameAndIsDelete(String username, boolean isDelete);
//    List<NotebookDo> findNotebookDoByUsernameAndNotebookIdAndIsDelete(String username,Integer notebookName,boolean isDelete);
    List<DeckDo> findDeckDoByUsernameAndIsDelete ( String username,boolean isDelete);
    DeckDo findDeckDoByIdAndIsDelete ( Integer deckId,boolean isDelete);
    List<DeckDo> findDeckDoByUsernameAndDeckNameContainingAndIsDelete ( String username,String key,boolean isDelete);
}
